# !/usr/bin/env python3
# -*- coding: utf-8 -*-

'错误模块'


class MatchingError(Exception):
    """自定义错误类

    用于触发自定义错误

    Attributes:
        msg: 错误信息
    """

    def __init__(self, msg) -> None:
        """类初始化"""
        self.__msg = msg

    def __str__(self) -> str:
        """返回错误信息"""
        return self.__msg
